﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LinQProject;
using LinQProject.Repository;


namespace ServiceProject.EntityService
{
    public class RegionService:DataBaseProcessBase<Region>
    {
        public RegionService(FarmacieDataClassesDataContext database) : base(database)
        {}

        public IList<Region> GetAllRegion(bool? isActive)
        {
            if (isActive == null)
                return base.GetAll();
            return base.GetAll(r => r.IsActive == isActive);
        }
    }
}
